﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using GDesktop.Arquitetura;

namespace GDesktop.Login
{
    public partial class LoginForm : Form
    {
        public LoginForm()
        {
            InitializeComponent();
        }

        private void btnLogar_Click(object sender, EventArgs e)
        {
            Aplicacao.Login = txtLogin.Text;
            Aplicacao.Password = txtSenha.Text;

            Aplicacao.NomeAplicacao = "exampleCo-exampleApp-1";
            Aplicacao.Login = "fabricioveronez@gmail.com";
            Aplicacao.Password = "bug#1979";

            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }

        private void btnCancelar_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.Close();
        }

        private void LoginForm_Load(object sender, EventArgs e)
        {
            this.btnLogar_Click(new object(), new EventArgs());
        }
    }
}
